package com.yami.shop.consign.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@TableName("tz_consign_prod")
public class ProdConfig {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @NotNull(message = "请选择商品")
    private Integer prodId;

    private String prodName;

    private String prodImg;

    @NotNull(message = "最低价不能为空")
    private Integer lowPrice;

    @NotNull(message = "最高价不能为空")
    private Integer highPrice;

    private Double issuerRate;

    private Double platformRate;

    @NotNull(message = "结算周期不能为空")
    private Integer settleDays;

    /**
     * 寄售状态 0：删除 1：关闭 2：开启
     */
    private Integer status;

    private String remarks;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private Date updateTime;

    /**
     * 流通数量
     */
    private Integer circulateNum;
    
}
